#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from rest_framework import serializers

from book_app.models import BookModel, BookBorrowRecordModel


class BookSerializers(serializers.ModelSerializer):
    class Meta:
        model = BookModel
        fields = '__all__'


class BookBorrowSerializers(serializers.ModelSerializer):
    class Meta:
        model = BookBorrowRecordModel
        fields = '__all__'
